<%@ page pageEncoding="UTF-8" %>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>

<nav>
    <rich:panelMenu label="#{msg.menu}" mode="server">
        <rich:panelMenuGroup label="#{msg.patient}">
            <rich:panelMenuItem label="#{msg.patient_list}" action="pazienti" reRender="all"
                                onbeforedomupdate="#{extendedDataTableBean.invalidPatsQueue() && med.setPerformedF(true)}"  />
            <rich:panelMenuItem label="#{msg.waiting_patient_list}" action="waitingPatients"
                                reRender="all" onbeforedomupdate="#{extendedDataTableBean.invalidPatsQueue()}" />
        </rich:panelMenuGroup>
        <rich:panelMenuGroup label="#{msg.visits}">
            <rich:panelMenuItem label="#{msg.show_next_visits}" action="visits" 
                                onbeforedomupdate="#{extendedDataTableBean.invalidPatsQueue()}" />
        </rich:panelMenuGroup>
        <rich:panelMenuGroup label="#{msg.statistics}">
            <rich:panelMenuItem label="#{msg.show_statistics}" action="statistics"
                                onbeforedomupdate="#{extendedDataTableBean.invalidPatsQueue()}" />
        </rich:panelMenuGroup>
        <rich:panelMenuGroup label="#{msg.logout}" expanded="true" onclick="none" >
            <rich:panelMenuItem label="#{msg.logout}" action="home" />
        </rich:panelMenuGroup>
    </rich:panelMenu>
</nav>